const mongoose =  require('mongoose')
mongoose.connect(
  'mongodb://localhost:27017/position', 
  { 
    useUnifiedTopology: true, 
    useNewUrlParser: true 
  }
)

const UserModel = mongoose.model('users', {
  username: String,
  password: String
})

module.exports = {
  UserModel
}